<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>{% block title %}{{ application_name }}{% endblock %}</title>
    <link href="/static/css/base.css" rel="stylesheet" type="text/css"/>
    <link href="/third_party/static/jquery.jgrowl.css" rel="stylesheet" type="text/css"/>
    <script src="/third_party/javascript/base.min.js"></script>
    <script src="/third_party/javascript/base_ui.min.js"></script>
    <script src="/third_party/javascript/mercury_ui.min.js"></script>
    <script src="http://www.google.com/jsapi"></script>
    <script src="/javascript/minerva.min.js"></script>
    {% block extra_head %}{% endblock %}
  </head>
  <body>
    {% block top %}
    <div id="top">
      <div class="login">
        {% if user %}
          <span class="item nickname">{{ user.nickname }}</span> |
          <span class="item">
            <a href="{{ logout_url|escape }}">Sign out</a>
            </span>
        {% else %}
          <span class="item">
            <a href="{{ login_url|escape }}">Sign in</a>
            </span>
        {% endif %}
      </div>
      {% include "title.html" %}
    </div>
    {% endblock %}
    {% include "mercury.html" %}
    <div class="navpath">
      <h1>{{ req.path|navify }}</h1>
      <span id="navcloud"></span>
      <div class="clearerer"></div>
      </div>
    <div id="mid">{% block mid %}{% endblock %}</div>
    <div id="bottom">{% block bottom %}{% endblock %}</div>
  </body>
</html>
